<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

require 'defaultController.php';

class dataController extends defaultController {
    function moneyAction(){
        if(!$this->checkLogin()){
                $this->redirectPage("index.php?c=login&a=index");
            }
        $id=$_SESSION['userid'];
        $list=$this->_model('data')->mlist($id);
        $data['list']=$list;
        $this -> _view('data_money.tpl.php',$data);
    }
    function messAction(){
        if(!$this->checkLogin()){
                $this->redirectPage("index.php?c=login&a=index");
            }
        $id=$_SESSION['userid'];
        $list=$this->_model('data')->mlist2($id);
        $data['list']=$list;
        $this -> _view('data_mess.tpl.php',$data);
    }
    function taskAction(){
        if(!$this->checkLogin()){
                $this->redirectPage("index.php?c=login&a=index");
            }
        $id=$_SESSION['userid'];
        $list=$this->_model('data')->mlist3($id);
        $data['list']=$list;
        $this -> _view('data_task.tpl.php',$data);
    }
};